﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Outpatient.Migrations
{
    /// <inheritdoc />
    public partial class add_column_otprgstrec_DrCodg : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "OtpSetlWay",
                schema: "Outpatient",
                table: "OtpSetlType",
                type: "integer",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "OtpRgstTypeName",
                schema: "Outpatient",
                table: "OtpSchdRec",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "DeptCodg",
                schema: "Outpatient",
                table: "OtpRgstRec",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "DeptName",
                schema: "Outpatient",
                table: "OtpRgstRec",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "DrCodg",
                schema: "Outpatient",
                table: "OtpRgstRec",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DrName",
                schema: "Outpatient",
                table: "OtpRgstRec",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MdtrtCertTypeName",
                schema: "Outpatient",
                table: "OtpRgstRec",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<DateTime>(
                name: "SchdDate",
                schema: "Outpatient",
                table: "OtpRgstRec",
                type: "timestamp without time zone",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<string>(
                name: "SetlTypeCode",
                schema: "Outpatient",
                table: "OtpRgstRec",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "SetlTypeName",
                schema: "Outpatient",
                table: "OtpRgstRec",
                type: "text",
                nullable: false,
                defaultValue: "");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "OtpSetlWay",
                schema: "Outpatient",
                table: "OtpSetlType");

            migrationBuilder.DropColumn(
                name: "OtpRgstTypeName",
                schema: "Outpatient",
                table: "OtpSchdRec");

            migrationBuilder.DropColumn(
                name: "DeptCodg",
                schema: "Outpatient",
                table: "OtpRgstRec");

            migrationBuilder.DropColumn(
                name: "DeptName",
                schema: "Outpatient",
                table: "OtpRgstRec");

            migrationBuilder.DropColumn(
                name: "DrCodg",
                schema: "Outpatient",
                table: "OtpRgstRec");

            migrationBuilder.DropColumn(
                name: "DrName",
                schema: "Outpatient",
                table: "OtpRgstRec");

            migrationBuilder.DropColumn(
                name: "MdtrtCertTypeName",
                schema: "Outpatient",
                table: "OtpRgstRec");

            migrationBuilder.DropColumn(
                name: "SchdDate",
                schema: "Outpatient",
                table: "OtpRgstRec");

            migrationBuilder.DropColumn(
                name: "SetlTypeCode",
                schema: "Outpatient",
                table: "OtpRgstRec");

            migrationBuilder.DropColumn(
                name: "SetlTypeName",
                schema: "Outpatient",
                table: "OtpRgstRec");
        }
    }
}
